﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TimSoNguyenTo
{
    class Program
    {
        static void Main(string[] args)
        {

           
            Console.Write("\t \tKIEM TRA SO NGUYEN TO");
            Console.Write("\n \t ***********************************\n");
            int n, sus = 2;
            Console.Write("Hay Nhap So n: ");
            n = int.Parse(Console.ReadLine());
            {
                for (int j = 2; j < n; j++)

                    if (n % j == 0)
                        sus++;
            }
            if (sus == 2)
                Console.Write("La so nguyen to");
            else
                Console.Write("Khong phai la so nguyen to");
Console.Write("\n \t ***********************************\n");
            Console.ReadKey();
 
        }
    }
}
